package com.idheima.d02_duotai_lianxi;

public class Pig extends Animal{

    public Pig(String name, int age, String sex) {
        super(name, age, sex);
    }

    @Override
    public void eat() {
        System.out.println(getName()+"吃猪食");
    }
}
